package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @author xubo
 * @date 2018/8/14 9:30
 */
public class SignUp1SonData implements Parcelable,MultiItemEntity {

    /**
     * classifyId : 0
     * classifyName : 一、准备课
     * id : 2786
     * parentId : 2785
     * researchId : 745
     */

    private int classifyId;
    private String classifyName;
    private int id;
    private int parentId;
    private int researchId;

    public int getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(int classifyId) {
        this.classifyId = classifyId;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getResearchId() {
        return researchId;
    }

    public void setResearchId(int researchId) {
        this.researchId = researchId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.classifyId);
        dest.writeString(this.classifyName);
        dest.writeInt(this.id);
        dest.writeInt(this.parentId);
        dest.writeInt(this.researchId);
    }

    public SignUp1SonData() {
    }

    protected SignUp1SonData(Parcel in) {
        this.classifyId = in.readInt();
        this.classifyName = in.readString();
        this.id = in.readInt();
        this.parentId = in.readInt();
        this.researchId = in.readInt();
    }

    public static final Parcelable.Creator<SignUp1SonData> CREATOR = new Parcelable.Creator<SignUp1SonData>() {
        @Override
        public SignUp1SonData createFromParcel(Parcel source) {
            return new SignUp1SonData(source);
        }

        @Override
        public SignUp1SonData[] newArray(int size) {
            return new SignUp1SonData[size];
        }
    };

    @Override
    public int getItemType() {
        return 1;
    }
}
